import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
// 引入vxe-table相关
import './init/table';
// 引入默认组件库
import './init/multi';
// 引入自定义模块
import './init/custom';

// 获取路由数据
import routerData from '@/router/router'

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App),
    created() {
        // 初始化路由设置，用于处理tab选项卡
        this.$store.commit('page/init', routerData);
        this.$store.state.milieuTag = process.env.VUE_APP_CURRENTMODE;
    }
}).$mount('#app')